home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- menuRect = the rect of sprite the clickOn
- ClickV = (the clickLoc).locV
- fieldMemberNum = the memberNum of sprite (the clickOn + 1)
- lineHeight = the textHeight of member fieldMemberNum
- if (ClickV - menuRect.top) < 20 then
- repeat while the stillDown
- top = member(fieldMemberNum).scrollTop
- member(fieldMemberNum).scrollTop = max(0, top - lineHeight)
- wait(15)
- end repeat
- else
- if (menuRect.bottom - ClickV) < 20 then
- R = the rect of sprite (the clickOn + 1)
- sHeight = R.bottom - R.top
- diff = member(fieldMemberNum).height - sHeight
- repeat while the stillDown
- top = member(fieldMemberNum).scrollTop
- if top < diff then
- member(fieldMemberNum).scrollTop = top + lineHeight
- end if
- wait(15)
- end repeat
- end if
- end if
- end
-